package testIo;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class Test05 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fis = new FileOutputStream("ddd.txt");
        String str = "啦啦啦德玛西亚";
        byte[] bytes = str.getBytes(StandardCharsets.UTF_8);
        fis.write(bytes);
        System.out.println("写入完毕");

    }
}
